import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutterdemo/1demo/common/utils/local_storage_util.dart';
import 'package:flutterdemo/1demo/home_page.dart';

void main(){
  runApp(MaterialApp(home: HomePage(),));
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {

    LocalStorageUtil.saveString("aaa", "aaa");
    Future<String> s = LocalStorageUtil.getString("aaa");
    s.then((value) => {
      print(value)
    });

    return Container();
  }
}
